﻿@model DistanceLearning.Models.ExamTestQuestion

@{
    ViewBag.Title = "ClosedQuestion";
}

<h2>Вопрос № @Model.ExamTestQuestionID</h2>

@{
    foreach(var tPicture in Model.ExamTestPictures)
    {
        string imagePath = string.Format("Image/{0}", tPicture.ExamTestPictureID);
        <img src=@imagePath alt="name" /><br />
    }
}

@using (Html.BeginForm()) {
    @Html.HiddenFor(x => x.ExamTestQuestionID)
    <fieldset>
        @Html.DisplayTextFor(x => x.Body)
    </fieldset>
    <b>Ваш ответ:</b><br/>
        
    //@Html.TextBoxFor(x => x.UserVariant)
    @Html.TextBox("userVariant")
    <p>
        <input type="submit" value="Ответить" />
    </p>
}